package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.TempCityServerCentre;
import com.sc.nft.entity.TempUserCollectiblesOwned;
import com.sc.nft.mapper.TempCityServerCentreMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 朱梦晨
 * @Description: 城市服务中心/社区网点
 * @date 2024-07-25
 */
@Slf4j
@Repository
public class TempCityServerCentreDao extends ServiceImpl<TempCityServerCentreMapper, TempCityServerCentre> {

    public List<TempCityServerCentre> getTempCityServerCentreList(Long exportRecordsId){
        LambdaQueryWrapper<TempCityServerCentre> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TempCityServerCentre::getExportRecordsId,exportRecordsId);
        wrapper.eq(TempCityServerCentre::getIsDelete, Boolean.FALSE);
        return list(wrapper);
    }

}
